home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / standards / CCITT / 1992 / X / x21.asc < prev    next >
Encoding:
Text File  |  1993-07-15  |  77.2 KB  |  1,131 lines

  1.          Recommendation X.21
  2.                                INTERFACE BETWEEN DATA TERMINAL EQUIPMENT (DTE)
  3.                               AND DATA CIRCUIT-TERMINATING EQUIPMENT (DCE) FOR
  4.                                 SYNCHRONOUS OPERATION ON PUBLIC DATA NETWORKS
  5.                           (Geneva, 1972; amended at Geneva, 1976 and 1980,
  6.                            Malaga-Torremolinos, 1984 and Melbourne, 1988)
  7.                                               CONTENTS
  8.          Preface
  9.          1      Scope
  10.          2      DTE/DCE physical interface elements
  11.          3      Alignment of call control characters and error checking
  12.          4      Elements of the call control phase for circuit switched service
  13.          5      Data transfer phase
  14.          6      Clearing phase
  15.          7      Test loops
  16.          Annex A - Interface signalling state diagrams
  17.          Annex B - Interface signalling sequence diagrams and time-out operation
  18.          Annex C - DTE time-limits and DCE time-outs
  19.          Annex D - Formats of Selection, Call progress and line identification signals
  20.          Annex E - Interworking between DTEs conforming to Recommendations X.21  and  X.21
  21.          bis
  22.          Annex F - Coding of Call progress signals
  23.          Annex G - Facility request, Indicator and Parameter coding
  24.          Annex H - Information content of DCE-provided information
  25.          Annex I - Cross reference and transition tables
  26.                 Preface
  27.                 The CCITT,
  28.           considering
  29.                 (a) that Recommendations X.1 and X.2 define the services and facilities  to
  30.           be provided by a public data network;
  31.                 (b) that Recommendation X.92 defines the hypothetical reference connections
  32.           for synchronous public data networks;
  33.                 (c) that Recommendation X.96 defines call progress signals;
  34.                 (d) that the necessary elements for an interface Recommendation  should  be
  35.           defined in architectural levels;
  36.                 (e) that it is desirable for characteristics of the interface  between  the
  37.           DTE and DCE of a public data network to be standardized,
  38.           unanimously declares the view
  39.                 that the interface between the DTE and DCE  in  public  data  networks  for
  40.           user classes of service employing synchronous transmission should be  as  defined
  41.           in this Recommendation.
  42.           1      Scope
  43.           1.1    This Recommendation defines the physical characteristics and call  control
  44.           procedures for a general purpose interface between DTE and DCE for  user  classes
  45.           of service, as defined in Recommendation X.1, employing synchronous transmission.
  46.           1.2    The formats and procedures for selection, call progress  and  DCE-provided
  47.           information are included in this Recommendation.
  48.           1.3    The provision for duplex operation is covered.
  49.           1.4    The operation of the interface for half duplex  operation  when  the  data
  50.           circuit interconnects with Recommendation X.21 bis DTEs is described in Annex  E.
  51.           Half duplex operation between X.21 DTEs  is  for  further  study  when  such  new
  52.           facilities are identified.
  53.           2      DTE/DCE physical interface elements
  54.           2.1    Electrical characteristics
  55.           2.1.1  Data signalling rates of 9600 bit/s and below
  56.                 The electrical characteristics of the interchange circuits at the DCE  side
  57.           of the interface will comply with Recommendation X.27 without  cable  termination
  58.           in the load. The electrical characteristics at the DTE side of the interface  may
  59.           be applied according to either Recommendation X.27 either with or  without  cable
  60.           termination in the load, or Recommendation X.26. The B` leads of receivers in  an
  61.           X.26 DTE must be brought out to the  interface  individually  and  not  connected
  62.           together. (See S 2.2 below.)
  63.                 Note - In certain instances where X.27 circuits  are  implemented  on  both
  64.           sides of the interface, it may  be  necessary  to  add  either  serial  impedance
  65.           matching resistors or parallel cable terminating resistors as specified  in  X.27
  66.           to assure proper operation of the interchange circuits.
  67.           2.1.2  Data signalling rates above 9600 bit/s
  68.                 The electrical characteristics of the interchange circuits at both the  DCE
  69.           side and the DTE side of the interface will comply with Recommendation X.27  with
  70.           or without implementation of the cable termination in the load.
  71.           2.2    Mechanical characteristics
  72.                 Refer to ISO 4903 (15-pole DTE/DCE interface connector and  contact  number
  73.           assignments) for mechanical arrangements.
  74.           2.3    Functional characteristics of interchange circuits
  75.                 Definitions of the interchange circuits concerned (see  Table  1/X.21)  are
  76.           given in Recommendation X.24.
  77.                 In this Recommendation, signal conditions on interchange circuits T, C,  R,
  78.           and I are designated by t, c, r, and i, respectively.
  79.                 Signal conditions on circuit  C  (Control)  and  I  (Indication)  refer  to
  80.           continuous ON (significant level binary 0) and continuous OFF (significant  level
  81.           binary 1) conditions.
  82.                                                  TABLE 1/X.21
  83.            Interchange            Name                 Direction               Remarks
  84.              circuit     
  85.                                                   to DCE      from DCE   
  86.                 G        Signal ground or                                    See Note 1
  87.                           common return        
  88.                 Ga         DTE common return         X                     
  89.                 T         Transmit                  X                     
  90.                                                                         
  91.              R         Receive                                X       
  92.              C         Control                   X                     
  93.              I         Indication                             X       
  94.              S         Signal element                         X           See Note 2
  95.                        timing               
  96.              B         Byte timing                            X           See Note 3
  97.              X         DTE signal element        X                        See Note 4
  98.                        timing               
  99.        Note 1 - This conductor may be used to reduce environmental  signal  interference  at  the
  100.        interface. In the case  of  shielded  interconnecting  cable,  the  additional  connection
  101.        considerations are part of Recommendation X.24 and ISO 4903.
  102.        Note 2 - Timing for continuous isochronous data transmission will be provided.
  103.        Note 3 - May be provided as an optional additional facility (see S 3.1.1 below).
  104.        Note 4 - The use and the termination of this circuit by the DCE is a national matter.
  105.        2.4    Physical link control conditions
  106.                The DTE and DCE shall be prepared to send steady binary conditions 0 and  1
  107.          on circuit R or T, together with associated conditions on circuit C or I,  for  a
  108.          period of at least 24 bit intervals. Detection of steady binary 0 or 1 on circuit
  109.          R or T for 16 contiguous bit intervals with the associated condition on circuit I
  110.          or C may be interpreted by the DTE or DCE as a steady state condition.
  111.                If the DTE (or DCE) recognizes that the device on the  other  side  of  the
  112.          interface is signalling recognition of the current state, then the DTE  (or  DCE)
  113.          may begin signalling the next valid state. If the DTE (or DCE) is  not  ready  to
  114.          begin signalling the next valid state, it is obliged to continue  signalling  the
  115.          current state until it is so ready.
  116.                Note - As for state 12, S 5.1 has precedence over this S 2.4.
  117.          2.5    Quiescent phase
  118.                During the quiescent phase, the DTE and the DCE  signal  their  ability  to
  119.          enter operational phases such as the call control  phase  or  the  data  transfer
  120.          phase as defined for the appropriate service. The basic quiescent signals of  the
  121.          DTE and the DCE can appear at the interface in various combinations which  result
  122.          in different interface states as defined below and shown in Figure A-1/X.21.
  123.          2.5.1  DTE quiescent signals
  124.          2.5.1.1  DTE ready
  125.                The DTE indicates its readiness to enter operational phases,  according  to
  126.          the appropriate service, by signalling t = 1, c = OFF.
  127.          2.5.1.2  DTE uncontrolled not ready
  128.                The DTE indicates that it is unable to enter operational phases,  according
  129.          to the appropriate service, generally because of abnormal  operating  conditions,
  130.          by signalling t = 0, c = OFF.
  131.                For  leased  circuit  service  point-to-point  when  the  DTE  enters   DTE
  132.          uncontrolled not ready, the  remote  interface  may  signal  r  =  0,  i  =  OFF.
  133.          Additional actions to be taken by the DCE are for further study.
  134.                For  leased  circuit-centralized  multipoint  when   a   DTE   enters   DTE
  135.          uncontrolled not ready, no indication of this signal will be given at  the  other
  136.          connected DTE/DCE interfaces.
  137.          2.5.1.3  DTE controlled not ready
  138.                DTE controlled not ready indicates that, although the DTE  is  operational,
  139.          it is temporarily unable to accept incoming calls for circuit switched service.
  140.                This signal is indicated by t = 01 . . . (alternate bits are binary  0  and
  141.          binary 1), c = OFF. This signal shall persist for a minimum of 24 bit intervals.
  142.                Note - DTE controlled not ready is normally entered from the  ready  state,
  143.          as defined in S 2.5.3.1 below. In some networks, the DCE may  not  recognize  the
  144.          DTE controlled not ready signal if the DTE does not first signal DTE ready at the
  145.          same time the DCE signals DCE ready.
  146.          2.5.2  DCE quiescent signals
  147.                  2.5.2.1  DCE ready
  148.                The DCE indicates its readiness to enter operational phases,  according  to
  149.          the appropriate service, by signalling r = 1, i = OFF.
  150.          2.5.2.2  DCE not ready
  151.                DCE not ready indicates that no service is available and will be  signalled
  152.          whenever possible during  network  fault  conditions  and  when  test  loops  are
  153.          activated. This signal is indicated by r = 0, i = OFF.
  154.          2.5.2.3  DCE controlled not ready
  155.                DCE controlled not ready indicates that, although the DCE  is  operational,
  156.          it is temporarily unable to render service.
  157.                This signal is indicatd by r = 01 . . . (alternate bits are  binary  0  and
  158.          binary 1), i = OFF. This signal shall persist for a minimum of 24 bit intervals.
  159.                Note 1 - DCE controlled not ready may be entered from any state.
  160.                Note 2 - DCE controlled not ready may be provided as an optional facility.
  161.                2.5.3  Quiescent states (see Figure A-1/X.21)
  162.          2.5.3.1  Ready (state 1)
  163.                Ready is entered when the DTE and the DCE simultaneously signal  DTE  ready
  164.          and DCE ready, respectively.
  165.          2.5.3.2  State 14
  166.                State 14 is entered when the DTE and  the  DCE  simultaneously  signal  DTE
  167.          controlled not ready and DCE ready, respectively.
  168.          2.5.3.3  State 18
  169.                State 18 is entered when the DTE and  the  DCE  simultaneously  signal  DTE
  170.          ready and DCE not ready, respectively.
  171.          2.5.3.4  State 22
  172.                State 22 is entered when the DTE and  the  DCE  simultaneously  signal  DTE
  173.          uncontrolled not ready and DCE not ready, respectively.
  174.          2.5.3.5  State 23
  175.                State 23 is entered when the DTE and  the  DCE  simultaneously  signal  DTE
  176.          controlled not ready and DCE not ready, respectively.
  177.          2.5.3.6  State 24
  178.                State 24 is entered when the DTE and  the  DCE  simultaneously  signal  DTE
  179.          uncontrolled not ready and DCE ready, respectively.
  180.          2.6    Failure detection
  181.          2.6.1  Fault conditions of interchange circuits2
  182.                The DTE should interpret a fault condition on circuit R as  r  =  0,  using
  183.          failure detection type 2, a fault condition on  circuit  I  as  i  =  OFF,  using
  184.          failure detection type 1, and a fault condition on both circuits R and I as  r  =
  185.          0, i = OFF, DCE not ready. Alternatively, a  fault  condition  on  one  of  these
  186.          circuits, R or I, may be interpreted by the DTE as DCE not ready, r = 0, i =  OFF
  187.          using failure detection type 3.
  188.                The DCE will interpret a fault condition on circuit  T  as  t  =  0,  using
  189.          failure detection type 2, a fault condition on  circuit  C  as  c  =  OFF,  using
  190.          failure detection type 1, and a fault condition on both circuits T and C as  t  =
  191.          0, c = OFF, DTE uncontrolled not ready. Alternatively, a fault condition  on  one
  192.          of these circuits, T or C, may be interpreted by the DCE as DTE uncontrolled  not
  193.          ready, t = 0, c = OFF using failure detection type 3.
  194.          2.6.2  DCE fault conditions
  195.                If the DCE is unable to provide service (e.g., loss of  alignment  or  loss
  196.          of incoming line signal) after a period longer than a  fixed  duration,  it  will
  197.          indicate DCE not ready by signalling r = 0, i = OFF (see S  2.5.2.2  above).  The
  198.          value of that duration is network dependent. Prior to this DCE not ready  signal,
  199.          the DTE should be prepared to receive garbled signals or contiguous binary  1  on
  200.          circuit R with i = ON.
  201.          2.6.3  Signal element timing provision
  202.                The signal element timing signal is delivered  to  the  DTE  on  circuit  S
  203.          whenever possible, even when the DCE loses alignment or the incoming line signal.
  204.          The signal element timing rate should in no case deviate from the  nominal  value
  205.          by more than ▒ 1%.
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.                2 For the association of the receiver circuit-failure detection to particular  interchange
  230.            circuits in accordance with the type of failure detection, see Recommendation  X.26,  S
  231.            11 and Recommendation X.27, S 9.
  232.                3      Alignment of call control characters and error checking
  233.                All characters for call control purposes are  selected  from  International
  234.          Alphabet No. 5 according to Recommendation T.50.
  235.          3.1    Character alignment
  236.                For the interchange of information between the DTE and  the  DCE  for  call
  237.          control purposes, it is necessary to establish correct alignment  of  characters.
  238.          Each sequence of call control characters to and from the DCE shall be preceded by
  239.          two or more contiguous 1/6 (SYN) characters.
  240.          3.1.1  Certain Administrations  will  require  the  DTE  to  align  call  control
  241.          characters transmitted from the DTE to either SYN characters delivered to the DTE
  242.          or to signals on the byte timing interchange circuit.
  243.                Administrations who require this alignment shall provide  the  byte  timing
  244.          interchange circuit, but its  use  and  termination  by  the  DTE  shall  not  be
  245.          mandatory.
  246.          3.1.2   Certain  Administrations  will  permit  call  control  characters  to  be
  247.          transmitted from the DTE independently of the SYN  characters  delivered  to  the
  248.          DTE.
  249.          3.1.3  Additionally, for an intermediate period (see Note), Administrations  will
  250.          provide connection to the public data network of DTEs operating as described in S
  251.          3.1.2 above.
  252.                Note - The intermediate period would be determined by customer  demand  and
  253.          other relevant factors as interpreted by individual Administrations.
  254.          3.2    Error checking
  255.                Odd parity according to  Recommendation  X.4  applies  for  IA5  characters
  256.          interchanged for call control purposes.
  257.          4      Elements of the call control phase for circuit switched service
  258.                The state diagram provided  in  Figure  A-2/X.21,  shows  the  relationship
  259.          between the various call control phase states as defined below, together with the
  260.          recognized transactions between these states under normal  operating  conditions.
  261.          Illustrated examples of the time sequence relationships between these states  and
  262.          associated time-out operation are provided in Figures B-1/X.21 and B-2/X.21.
  263.                States which are indicated by an IA5 character on circuits T  and  R  shall
  264.          be entered and exited on a character boundary. At this time,  in  some  networks,
  265.          the transition from state 6 to state 11, or state 6 to state 12 may not be  on  a
  266.          character boundary.
  267.                Once character alignment has been established by the DCE in response to  an
  268.          outgoing call request, or for presentation of an  incoming  call,  the  alignment
  269.          will be maintained until entering connection in progress, state 11 or  ready  for
  270.          data if state 11 is by-passed. This implies  that  all  IA5  character  sequences
  271.          transmitted on circuit R, such as 2/11 ("+"), call progress signals, DCE-provided
  272.          information, etc., appear on  the  same  character  boundary  even  if  they  are
  273.          separated by two or more SYN characters.
  274.                The call control phase can be terminated by either the DTE or  the  DCE  by
  275.          clearing as defined in S 6 below.
  276.          4.1    Events of the call control procedures (see Figure A-2/X.21)
  277.          4.1.1  Call request (state 2)
  278.                The calling DTE shall indicate a request for a call  by  signalling  steady
  279.          binary condition t = 0, c = ON, provided that it was  previously  signalling  DTE
  280.          ready.
  281.                The change of state from ready (t = 1, c = OFF) to call request (t =  0,  c
  282.          = ON) shall be such that the transition to t = 0 occurs within a maximum of 7 bit
  283.          intervals of the transition to c = ON. Either transition may occur first.
  284.                Note -  When  optimizing  the  use  of  the  byte  timing  circuit  B,  the
  285.          transition to t = 0 shall occur within the same bit interval as the transition to
  286.          c = ON. This might become a requirement for  use  with  special  user  facilities
  287.          which might arise from further study.
  288.                If the DTE signals call  request  (state  2)  and  the  DCE  simultaneously
  289.          signals r = 0, i = OFF, the DCE will be assumed to be  in  state  19  (DCE  clear
  290.          indication).
  291.          4.1.2  Proceed to select (state 3)
  292.                When the network is prepared to receive selection information the DCE  will
  293.          transmit continuously character 2/11 ("+")  preceded  by  2  or  more  contiguous
  294.          characters 1/6 ("SYN") on the R circuit with i = OFF.
  295.                Proceed-to-select is  maintained  until  receipt  of  the  end-of-selection
  296.          signal, or in the case of direct call, receipt of DTE waiting.
  297.                The proceed-to-select signal will  start  within  3  seconds  of  the  call
  298.          request being sent.
  299.          4.1.3  Selection signal sequence (state 4)
  300.                The selection signal sequence shall be transmitted by  the  DTE  on  the  T
  301.          circuit with c = ON and shall be preceded by two or more contiguous  1/6  ("SYN")
  302.          characters with c = ON.
  303.                The format of the selection signal sequence is defined in S 4.6.1 below.
  304.                The information content and coding of  the  selection  signal  sequence  is
  305.          contained in Annex G and Recommendation X.121.
  306.                The  selection  signal  sequence  shall   start   within   6   seconds   of
  307.          proceed-to-select being received and shall be completed within 36 seconds.
  308.                The maximum permissible interval between  individual  selection  characters
  309.          is 6 seconds.
  310.                The period, if  any,  between  individual  selection  characters  shall  be
  311.          filled by character 1/6 ("SYN") with c = ON.
  312.          4.1.4  DTE waiting (state 5)
  313.                During DTE waiting, the DTE signals steady binary condition t = 1, c =  ON.
  314.          (See also S 4.4 below for direct call conditions.)
  315.          4.1.5  Incoming call (state 8)
  316.                The DCE will indicate  an  incoming  call  by  continuous  transmission  of
  317.          character 0/7 ("BEL") preceded by two or more contiguous 1/6  ("SYN")  characters
  318.          on the R circuit with i = OFF.
  319.                If the DCE signals incoming call and the DTE simultaneously signals t =  0,
  320.          c = OFF, the DTE will be assumed to be in state 16 (clear request).
  321.                The connection of incoming calls will be inhibited  when  the  DTE  signals
  322.          either DTE uncontrolled not ready or DTE controlled not ready.
  323.          4.1.6  Call accepted (state 9)
  324.          4.1.6.1  General case
  325.                The DTE shall accept the incoming call as soon as  possible  by  signalling
  326.          the steady state binary condition t = 1, c = ON.
  327.                1)  The DCE will return to DCE ready if the incoming call is not  accepted
  328.                   within 500 milliseconds,
  329.                   or, where manual answering is permitted,
  330.                2)  the DCE will return to DCE ready if the incoming call is not  accepted
  331.                   within 60 seconds.
  332.          4.1.6.2  Sub-addressing
  333.                Sub-addressing is an optional procedure.
  334.                Two procedures for sub-addressing  at  the  called  end  are  defined:  the
  335.          simple sub-addressing procedure and the enhanced sub-addressing procedure. Choice
  336.          of the provision of these procedures is a national matter.
  337.          4.1.6.2.1   Simple sub-addressing procedure (see Figure A-6/X.21)
  338.                The procedure is as follows:
  339.                a)  Call accept, see S 4.1.6.1.
  340.                b)  DCE waiting, see S 4.1.7.
  341.                c)  DCE-provided information: when  provided,  sub-addressing  information
  342.                   will be transmitted by the DCE to the called DTE  after  call  accepted
  343.                   has been  sent  by  the  DTE,  and  prior  to  any  other  DCE-provided
  344.                   information if any.
  345.                   The format of sub-addressing information is defined in S 4.6.3 below.
  346.                   The information content of sub-addressing  information  is  defined  in
  347.                   Annex H.
  348.                d)  Connection in progress, see S 4.1.10.
  349.                e)  Ready for data, see S 4.1.11.
  350.          4.1.6.2.2   Enhanced sub-addressing procedure (see Figures A-5/X.21 and B-3/X.21)
  351.          4.1.6.2.2.1 Proceed with call information (state 9B)
  352.                Note - State 9B is only entered in the case of a DTE with sub-addressing.
  353.                The DTE shall accept the incoming call as soon as possible by  transmitting
  354.          continuously character 2/10 ("*") preceded by 2 or more contiguous characters 1/6
  355.          ("SYN") on the T circuit with c = OFF.
  356.                Proceed with call information is maintained until receipt of  end  of  call
  357.          information signal. The proceed with call information signal  will  start  within
  358.          500 ms of the incoming call signal being received.
  359.          4.1.6.2.2.2 Call information signal sequence (state 10C)
  360.                Note - State 10C is only entered in the case of a DTE with sub-addressing.
  361.                The call information signal sequence will be transmitted by the DCE on  the
  362.          R circuit with i = OFF and will appear on the same boundary as it was entered  in
  363.          state 8.
  364.                The call information signal may be preceded by two or more  contiguous  1/6
  365.          ("SYN") characters.
  366.                The call information  is  also  a  DCE-provided  information  (see  also  S
  367.          4.1.9).
  368.                The information content and coding of the call information signal  sequence
  369.          is contained in Annex H and Recommendation X.121.
  370.                The call information signal sequence  will  start  and  will  be  completed
  371.          within 2 seconds after the proceed with call information being sent.
  372.                The maximum period, if any, between individual call information  characters
  373.          will be filled by character 1/6 ("SYN") with i = OFF.
  374.                The format of call information is the same as the  format  of  DCE-provided
  375.          information and is defined in S 4.6.3 below.
  376.          4.1.6.2.2.3 DCE waiting (states 6D and 6C)
  377.                During DCE waiting, the DCE will signal 2 or more  contiguous  1/6  ("SYN")
  378.          characters with i = OFF.
  379.          4.1.6.2.2.4 DTE-provided information (state 25)
  380.                The  DTE-provided  information  shall  be  transmitted  by  the  DTE   with
  381.          sub-addressing on circuit T with c = OFF.
  382.                A  DTE-provided  information  shall  consist  of  1  or  more  DTE-provided
  383.          information blocks. Each DTE-provided information block shall  be  limited  to  a
  384.          maximum length of 128 characters.
  385.                Note - The figure of 128 characters maximum length is provisional  and  may
  386.          be changed to another value in the future.
  387.                The format of the DTE-provided information is defined in S 4.6.4 below.
  388.                The coding of DTE-provided information should be in line with Annex  F  and
  389.          Recommendation X.96.
  390.                The DTE-provided information shall be sent on the same  character  boundary
  391.          as it  was  entered  in  state  9B.  DTE-provided  information  blocks  within  a
  392.          DTE-provided information may be preceded and separated by 1/6 ("SYN") characters.
  393.                A DTE-provided information (state 25) shall be sent to the  DCE  within  20
  394.          seconds after the end of call information  signal,  character  2/11  ("+")  being
  395.          received.
  396.                After reception of a DTE-provided information block,  the  DCE  will  reset
  397.          and restart time-out T14C.
  398.          4.1.7  DCE waiting (state 6A and state 6B)
  399.                During DCE waiting, the DCE will signal two or more contiguous 1/6  ("SYN")
  400.          characters on the R circuit with i = OFF. In the state diagram, Figure  A-2/X.21,
  401.          state 6A applies to calling procedures and state 6B applies to called procedures.
  402.          4.1.8  Call progress signal (state 7)
  403.                The call progress signal will be transmitted by the DCE to the calling  DTE
  404.          on the R circuit with i = OFF when an appropriate condition is encountered by the
  405.          network.
  406.                A call progress signal will consist of  1  or  more  call  progress  signal
  407.          blocks. A call progress signal block will consist of  1  or  more  call  progress
  408.          signals.
  409.                The format of the call progress signal  sequence  is  defined  in  S  4.6.2
  410.          below.
  411.                The coding of call progress signals is provided in Annex F.
  412.                The description of call progress  signals  is  provided  in  Recommendation
  413.          X.96.
  414.                A call progress signal will be preceded  by  two  or  more  contiguous  1/6
  415.          ("SYN") characters sent during state 6A. The period  between  these  blocks  will
  416.          also be filled by DCE waiting (state 6A).
  417.                A call progress signal will be transmitted by the  DCE  within  20  seconds
  418.          of: (1) the end-of-selection signal or (2) in the case of direct  call,  the  DTE
  419.          waiting signal being sent by the DTE. The call progress signal, however, will not
  420.          be sent by the DCE before the reception of the  end-of-selection  signal  or  DTE
  421.          waiting signal is sent by the DTE, except in the case of expiration  of  time-out
  422.          T11, T12, or T13 where there may be a call  progress  signal  followed  by  clear
  423.          indication.
  424.                Note - When an error  is  detected  in  a  received  call  progress  signal
  425.          sequence, the DTE may choose to either ignore the signal or attempt  a  new  call
  426.          after clearing.
  427.          4.1.9  DCE-provided information (states 10A and 10B)
  428.                The DCE-provided information will be transmitted by a DCE  to  the  calling
  429.          DTE (state 10A) or a called DTE (state 10B) on circuit R with i = OFF.
  430.                A  DCE-provided  information  will  consist  of  1  or  more   DCE-provided
  431.          information blocks. Each DCE-provided information block  will  be  limited  to  a
  432.          maximum length of 128 characters.
  433.                The format of the DCE-provided information is defined in S 4.6.3 below.
  434.                The information content of DCE-provided information is  provided  in  Annex
  435.          H.
  436.                The DCE-provided information will be preceded by  two  or  more  contiguous
  437.          1/6 ("SYN") characters. DCE-provided information  blocks  within  a  DCE-provided
  438.          information will be separated by 1/6 ("SYN") characters (the time between  blocks
  439.          to be filled by two or more SYN characters is for further study). In the case  of
  440.          a calling DTE (state 10A), the preceding and separating SYN  characters  will  be
  441.          from DCE waiting (state 6A). In the  case  of  a  called  DTE  (state  10B),  the
  442.          preceding SYN characters and the separating  SYN  characters  will  be  from  DCE
  443.          waiting (state 6B).
  444.                In  certain  circumstances,  SYN  characters  may   be   inserted   between
  445.          characters within a DCE-provided information block. Each insertion shall  contain
  446.          at least 2 SYN characters, and the inserted SYN characters  will  be  counted  as
  447.          part of the maximum limit of 128 characters per block. In any case, the insertion
  448.          of SYN characters should be rare and minimized.
  449.                A DCE-provided information (state 10B) will  be  sent  to  the  called  DTE
  450.          within 6 seconds of the call accepted signal being sent.  After  reception  of  a
  451.          DCE-provided information block, the called DTE should reset time-limit T4B.
  452.          4.1.9.1  Line identification
  453.                Calling and called line identification is an optional additional facility.
  454.                The information content  of  calling  and  called  line  identification  is
  455.          provided in Annex H.
  456.                Calling and called line identification will be transmitted by  the  DCE  on
  457.          the R circuit with i = OFF during states 10B or 10A, respectively.
  458.                When provided, called line identification (state 10A) will  be  transmitted
  459.          by the DCE to the calling DTE after all call progress signals, if any.
  460.                When provided, calling line identification (state 10B) will be  transmitted
  461.          by the DCE to the called DTE after call accepted has been sent by the DTE.
  462.                In the case where the calling line identification facility is not  provided
  463.          by the originating network, or the called line  identification  facility  is  not
  464.          provided by the  destination  network,  a  dummy  line  identification  shall  be
  465.          provided by the DCE  to  the  DTE.  In  some  networks,  when  the  calling  line
  466.          identification is not provided by the  originating  network,  the  DNIC  will  be
  467.          provided by the DCE to the DTE in place of the dummy line identification.
  468.          4.1.9.2  Charging information
  469.                Charging information is an optional  additional  facility  provided  during
  470.          state 10B.
  471.                Upon completion of clearing the call for  which  charging  information  has
  472.          been requested, the DCE will, within 200  ms  after  entering  ready  (state  1),
  473.          establish an incoming call  to  the  DTE  for  the  purpose  of  giving  charging
  474.          information.
  475.                Note - The DTE is advised not to signal call request or  not  ready  during
  476.          the above 200 ms period. If the DTE does, the charging information  will  not  be
  477.          transmitted to the DTE.
  478.                Charging information will be transmitted by the DCE on R circuit with  i  =
  479.          OFF.
  480.                The DCE will send  clear  indication  (state  19)  upon  sending  the  last
  481.          charging information block. The DTE should send clear request (state 16) when  it
  482.          has correctly received the charging  information  signal,  if  the  DCE  has  not
  483.          previously signalled clear indication.
  484.                The format of charging information is defined in S 4.6.3 below.
  485.          4.1.10 Connection in progress (state 11)
  486.                While the  connection  process  is  in  progress,  the  DCE  will  indicate
  487.          connection in progress (state 11) by signalling r = 1, i = OFF.
  488.                In some circumstances, connection in progress (state 11) may be bypassed.
  489.          4.1.11 Ready for data (state 12)
  490.                When the connection is available for data transfer between both  DTEs,  the
  491.          DCE will indicate ready for data (state 12) by signalling r = 1, i = ON.
  492.                1)  Ready for data will be indicated by the DCE to the calling DTE within 6 
  493.                   seconds of the last call progress signal  or  DCE-provided  information
  494.                   signals being  received  by  the  DTE  or  within  20  seconds  of  the
  495.                   end-of-selection signal being signalled by the DTE,
  496.                   or, when manual answering is permitted at the called DTE.
  497.                2)  Ready for data will be indicated by the DCE to the calling DTE  within
  498.                   60 seconds of the appropriate call progress signal  being  received  or
  499.                   within 20 seconds of the end-of-selection signal being received.
  500.                   It will be indicated to  the  called  DTE  within  6  seconds  of  call
  501.                   accepted  being  signalled  by  the  DTE  or  receipt  of  DCE-provided
  502.                   information signal.
  503.                   Subsequent procedures are described in S 5 below, data transfer phase.
  504.          4.1.12  Events  of  the  call  control  procedure  for   centralized   multipoint
  505.                circuit-switched service
  506.          4.1.12.1 Call request (state 2)
  507.                See S 4.1.1.
  508.          4.1.12.2 Proceed to select request (state 3)
  509.                See S 4.1.2.
  510.          4.1.12.3 Selection signal sequence (state 4)
  511.                See S 4.1.3.
  512.                A  facility  request  signal  is  used  to   indicate   the   category   of
  513.          point-to-multipoint service which is required.
  514.                The coding is defined in Annex G.
  515.          4.1.12.4 DTE waiting (state 5)
  516.                See S 4.1.4.
  517.          4.1.12.5 Incoming call (state 8)
  518.                See S 4.1.5.
  519.          4.1.12.6 Call accepted (state 9)
  520.                See S 4.1.6.1.
  521.          4.1.12.7 DCE waiting (state 6A and state 6B)
  522.                See S 4.1.7.
  523.          4.1.12.8 Call progress signal sequence (state 7)
  524.                See S 4.1.8.
  525.                In a point-to-multipoint call the call progress signals related to each  of
  526.          the called DTEs are transmitted and then in  the  same  order,  the  called  line
  527.          identification signals of the different called DTEs.
  528.                When no specific call progress signals are necessary  for  a  given  called
  529.          DTE, then the call progress signal "00" is used for this DTE so  that  the  order
  530.          can be kept.
  531.          4.1.12.9 DCE-provided information sequence (states 10A and 10B)
  532.                The DCE-provided information sequences will be transmitted by a DCE to  the
  533.          calling DTE (state 10A) or a called DTE (state 10B) on circuit R with i = OFF.
  534.                A  DCE-provided  information  sequence  will  consist  of   one   or   more
  535.          DCE-provided information blocks. Each  DCE-provided  information  block  will  be
  536.          limited  to  a  maximum  length  of  128  characters,  except  for  called   line
  537.          identification in case of point-to-multipoint calls where the maximum  length  is
  538.          512 characters.
  539.                The format of the DCE-provided information sequence is defined in  S  4.6.3
  540.          below.
  541.                The information content of DCE-provided information is  provided  in  Annex
  542.          H.
  543.                The DCE-provided information sequence will  be  preceded  by  two  or  more
  544.          contiguous 1/6 ("SYN")  characters.  DCE-provided  information  blocks  within  a
  545.          DCE-provided information sequence will be separated  by  1/6  ("SYN")  characters
  546.          (the time between blocks to be filled by  two  or  more  SYN  characters  is  for
  547.          further study). In the case of a calling  DTE  (state  10A),  the  preceding  and
  548.          separating SYN characters will be from DCE waiting (state 6A). In the case  of  a
  549.          called DTE (state 10B), the preceding  SYN  characters  and  the  separating  SYN
  550.          characters will be from DCE waiting (state 6B).
  551.                In  certain  circumstances,  SYN  characters  may   be   inserted   between
  552.          characters within a DCE-provided information block. Each insertion shall  contain
  553.          at least 2 SYN characters, and the inserted SYN characters  will  be  counted  as
  554.          part of the maximum limit of 128 characters per block. In any case, the insertion
  555.          of SYN characters should be rare and minimized.
  556.                A DCE-provided information sequence (state 10B) will be sent to the  called
  557.          DTE within 6 s of the call accepted signal  being  sent.  After  reception  of  a
  558.          DCE-provided information block, the called DTE should reset time-limit T4.
  559.          4.1.12.9.1  Line identification
  560.                The called line identification related to  the  different  called  DTEs  is
  561.          provided in sequence.
  562.                See S 4.1.9.1.
  563.          4.1.12.9.2  Charging information
  564.                See S 4.1.9.2.
  565.          4.1.12.10   Connection in progress (state 11)
  566.                See S 4.1.10.
  567.          4.1.12.11   Ready for data (state 12)
  568.                See S 4.1.11.
  569.          4.2    Unsuccessful call
  570.                If the required connection cannot be established,  the  DCE  will  indicate
  571.          this and the reason to the calling DTE  by  means  of  a  call  progress  signal.
  572.          Afterwards the DCE will signal DCE clear indication (state 19).
  573.          4.3    Call collision (state 15)
  574.                A call collision is detected by a DTE when it  receives  incoming  call  in
  575.          response to call request. The DTE shall not deliberately cause a  call  collision
  576.          by responding to incoming call with call request.
  577.                A call collision is detected by a DCE when  it  receives  call  request  in
  578.          response to incoming call.
  579.                When a call collision is  detected  by  the  DCE,  the  DCE  will  indicate
  580.          proceed-to-select (state 3) and cancel the incoming call.
  581.          4.4    Direct call
  582.                For a direct call facility, the entering of DTE waiting (state 5)  directly
  583.          upon receipt of proceed-to-select (state 3) indicates the request for the  direct
  584.          call. When the direct call facility is provided on a per-call basis, the DTE  may
  585.          choose either an addressed call by presenting selection signal  (state  4)  or  a
  586.          direct call by presenting DTE waiting (state 5). When the  direct  call  facility
  587.          only is provided on a subscription basis, selection signals (state 4) are  always
  588.          bypassed.
  589.          4.5    Facility registration/cancellation procedure
  590.                Registration/cancellation   of   optional   user   facilities   shall    be
  591.          accomplished by a DTE  using  normal  call  establishment  procedures  using  the
  592.          selection sequence which is defined in S 4.6.1 below.
  593.                The format of the facility registration/cancellation signal is  defined  in
  594.          S 4.6.1.3 below.
  595.                The facility registration/cancellation  procedure  shall  not  be  combined
  596.          with establishment of a normally  addressed  call,  but  shall  be  taken  as  an
  597.          independent procedure.
  598.                In   response   to   acceptance    or    rejection    of    the    facility
  599.          registration/cancellation actions, the network will provide the appropriate  call
  600.          progress signal followed by clear indication.
  601.          4.6    Selection, call progress and DCE provided information formats
  602.                (See also Annex D for a syntactic description of the formats.)
  603.          4.6.1  Format of selection sequence
  604.                A selection sequence shall consist of  a  facility  request  block,  or  an
  605.          address block, or a facility request block followed by an  address  block,  or  a
  606.          facility registration/cancellation block.
  607.          4.6.1.1  Facility request block
  608.                A facility request block shall consist of  one  or  more  facility  request
  609.          signals.
  610.                Multiple facility request signals shall be separated by character  2/12  ("
  611.          , ").
  612.                A facility request signal shall consist of a facility request code and  may
  613.          contain one or more facility parameters.  The  facility  request  code,  facility
  614.          parameter and subsequent facility parameters shall be separated by character 2/15
  615.          (" / "). For an interim period the 2/15 (" / ") separator will  not  be  used  in
  616.          some networks.
  617.                The end of a facility request block shall be indicated  by  character  2/13
  618.          ("-").
  619.          4.6.1.2  Address block
  620.                An address block shall consist of one or more address signals.
  621.                An address signal shall consist of either  a  full  address  signal  or  an
  622.          abbreviated address signal.
  623.                Start of an abbreviated address signal  shall  be  indicated  by  a  prefix
  624.          character 2/14 (" . ").
  625.                Multiple address signals shall be separated by character 2/12 (" , ").
  626.          4.6.1.3  Facility registration/cancellation block
  627.                A facility registration/cancellation block shall consist  of  one  or  more
  628.          facility registration/cancellation signals.
  629.                A facility registration/cancellation signal shall consist  of  up  to  four
  630.          elements in order: facility  request  code,  indicator,  registration  parameter,
  631.          address signal.
  632.                The elements  of  a  facility  registration/cancellation  signal  shall  be
  633.          separated by character 2/15 (" / ").
  634.                If a facility registration/cancellation signal contains less than  four  of
  635.          the elements, the elements  should  be  eliminated  in  reverse  order  (e.g.,  a
  636.          two-element facility registration/cancellation signal will contain  the  facility
  637.          request code " / " indicator). If any element to be sent within the  sequence  is
  638.          not required, a 3/0 ("0") character should be inserted in the  position  of  each
  639.          missing element (e.g., facility request code /0/0/ address signal).
  640.                Multiple facility registration/cancellation signals shall be  separated  by
  641.          character 2/12 (" , ").
  642.                The end of a facility registration/cancellation block  shall  be  indicated
  643.          by character 2/13 ("-") and shall be followed by an end of selection.
  644.          4.6.1.4  End of selection
  645.                The end of selection shall be indicated by character 2/11 ("+").
  646.          4.6.2  Format of a call progress block
  647.                A call progress block shall consist of one or more call progress signals.
  648.                A call progress signal shall consist  of  a  call  progress  code  and  may
  649.          contain an indicator.
  650.                The call progress code and the indicator shall be  separated  by  character
  651.          2/13 ("-").
  652.                Each call progress signal need not be repeated.
  653.                Multiple call progress signals shall be separated by character  2/12  ("  ,
  654.          ").
  655.                The end of a call progress block  shall  be  indicated  by  character  2/11
  656.          ("+").
  657.          4.6.3  Formats of DCE-provided information
  658.                The following formats are specified for  DCE-provided  information  signals
  659.          which have been identified.
  660.                The DCE-provided information shall, except  for  calling  and  called  line
  661.          identification, be started by the IA5 character 2/15  ("  /  ").  To  distinguish
  662.          between different types of DCE-provided information the prefix should be followed
  663.          by one or more numerical characters, followed by  the  character  2/15  ("  /  ")
  664.          before the actual information is presented. The end of a DCE-provided information
  665.          block shall be indicated  by  character  2/11  ("+").  The  order  in  which  the
  666.          DCE-provided information blocks are presented to the DTE is variable.
  667.                Multiple DCE-provided information signals shall be separated  by  character
  668.          2/12 (",").
  669.                A dummy  DCE-provided  information  block  may  be  sent  in  the  case  of
  670.          sub-addressing and will be indicated by the prefix as described above ("/",  "4",
  671.          "/") followed by 2/11 ("+").
  672.                The  dummy  sub-address  should   be   sent   if   the   network   supports
  673.          sub-addressing but no sub-address has been sent by the calling DTE.
  674.          4.6.3.1  Format of called and calling line identification
  675.                Calling line identification block  and  called  line  identification  block
  676.          shall be preceded by character 2/10 (" * ").
  677.                When a calling or called line identification block  contains  Data  Network
  678.          Identification Codes (DNIC) or Data Country Codes (DCC), the block shall  instead
  679.          of one character 2/10 (" * ") be preceded by 2 characters 2/10 (" ** ").
  680.                A called line identification block shall consist  of  one  or  more  called
  681.          line identification signals.
  682.                Multiple  called  line  identification  signals  shall  be   separated   by
  683.          character 2/12 (" , ").
  684.                End of calling line identification block  and  called  line  identification
  685.          block shall be indicated by character 2/11 (" + ").
  686.                The dummy line identification block shall be indicated  by  character  2/10
  687.          (" * ") followed by 2/11 ("+").
  688.          4.6.3.2  Format of charging information
  689.                The charging information block will be preceded by character 2/15 ("  /  ")
  690.          followed by a second IA5 numerical character, followed by character 2/15 (" / ").
  691.          The end of charging information block shall be indicated by character 2/11 ("+").
  692.          4.6.4  Format of DTE-provided information
  693.                A DTE-provided information block shall consist of 1  or  more  DTE-provided
  694.          information signals.
  695.                Each DTE-provided information signal need not be repeated.
  696.                Multiple DTE-provided information signals shall be separated  by  character
  697.          2/12 (",").
  698.                End of DTE-provided information block shall be indicated by character  2/11
  699.          ("+").
  700.          5      Data transfer phase
  701.                During the data transfer phase, any bit sequence  may  be  sent  by  either
  702.          DTE.
  703.                For the interchange of information between one DTE and another  DTE  during
  704.          the data transfer phase, the DTEs will be responsible for establishing their  own
  705.          alignment.
  706.                The byte timing interchange circuit, when implemented, may be  utilized  by
  707.          the DTEs for mutual character alignment.
  708.                Data link control procedures and any other  DTE-to-DTE  protocols  are  not
  709.          the subject of this Recommendation.
  710.          5.1    Circuit-switched service
  711.                All bits sent by a DTE after  indication  of  ready  for  data  for  16-bit
  712.          intervals (see S 2.4) and before sending DTE clear request will be  delivered  to
  713.          the corresponding DTE after that corresponding DTE has received  ready  for  data
  714.          and before it has received DCE clear indication (provided that the  corresponding
  715.          DTE does not take the initiative of clearing).
  716.                All bits received by a DTE, after indication of ready for data  for  16-bit
  717.          intervals (see S 2.4) and before receiving DCE clear indication or receiving  DCE
  718.          clear confirmation, were sent by the corresponding DTE. Some of  those  bits  may
  719.          have originated as DTE waiting before that corresponding DTE has  received  ready
  720.          for data; those bits are binary 1.
  721.                During data transfer (state 13), c = ON, i = ON and  data  are  transferred
  722.          on circuits T and R.
  723.                Data transfer may be terminated by clearing, as defined in S  6  below,  by
  724.          either:
  725.                i)  the DCE, or
  726.                ii) any connected DTE.
  727.                The action to be taken when circuit C is turned OFF  during  data  transfer
  728.          (state 13), except when the DTE is signalling DTE clear request (state 16) by t =
  729.          0, c = OFF, is for further  study  except  for  the  procedures  for  half-duplex
  730.          operation between DTEs  conforming  to  Recommendations  X.21  and  X.21  bis  as
  731.          described in Annex E.
  732.          5.2     Leased  circuit  service  -  point-to-point  (see  Figure  A-3/X.21)  and
  733.                packet-switched service (Recommendation X.25, level 1)
  734.                In this section, for the case of packet-switched service, one of  the  DTEs
  735.          must be understood as being the packet network data switching exchange (DSE).
  736.                Data transmitted by the DTE on circuit T with c = ON are delivered  to  the
  737.          remote DTE on circuit R with i = ON.
  738.                Both DTEs may employ duplex operation for the exchange of data.
  739.                Any bit sequence may be sent by either DTE during the ON-condition  of  its
  740.          circuit C.
  741.                Note - The entering of the DTE/DCE-interface of DTE uncontrolled not  ready
  742.          (state 22) will be signalled on the remote end as DCE not ready (state 18).
  743.                In Figure A-3/X.21 a state diagram indicating a  possible  data  connection
  744.          is shown. Apart from state 13,  two  additional  states,  13S  and  13R,  can  be
  745.          identified.
  746.          5.2.1  Send data (state 13S)
  747.                Data transmitted by the DTE on circuit T with c = ON are delivered  to  the
  748.          remote DTE on circuit R with i = ON.
  749.          5.2.2  Receive data (state 13R)
  750.                Data transmitted by a distant DTE with c = ON are  received  on  circuit  R
  751.          with i = ON.
  752.          5.2.3  Data transfer (state 13)
  753.                When c = ON, i = ON, data are transferred on circuits T and R.
  754.          5.2.4  Termination of data transfer
  755.                The DTE signals the termination of data transfer by signalling t = 1,  c  =
  756.          OFF. The DCE indicates termination of data transfer by signalling r = 1, i = OFF.
  757.                Note - The action taken by the DCE when the DTE signals c = OFF and t  does
  758.          not equal 1, is for further study except  for  the  DTE  uncontrolled  not  ready
  759.          procedures described in S 2.5.1.2 above.
  760.          5.3    Leased circuit service - centralized multipoint (see Figure A-3/X.21)
  761.          5.3.1  Central DTE data transfer
  762.          5.3.1.1  Send data (state 13S)
  763.                Data transmitted by the central DTE on circuit T with c = ON are  delivered
  764.          to all remote DTEs on circuit R with i = ON.
  765.          5.3.1.2  Receive data (state 13R)
  766.                Data transmitted by any  remote  DTE  with  c  =  ON  (one  at  a  time  as
  767.          determined by the data link protocol) during  state  13S  are  delivered  to  the
  768.          central DTE on circuit R with i = ON.
  769.          5.3.2  Remote DTE data transfer
  770.                Data transmitted by a remote DTE are not delivered to other remote DTEs.
  771.                Note - Transmission of data by two or more remote DTEs  at  the  same  time
  772.          may result in unsatisfactory conditions.
  773.          5.3.2.1  Send data (state 13S)
  774.                Data transmitted by remote DTEs with c = ON (one at a  time  as  determined
  775.          by the data link protocol) are delivered to the central DTE on circuit R with i =
  776.          ON.
  777.          5.3.2.2  Receive data (state 13R)
  778.                Data transmitted by the central DTE with  c  =  ON  are  delivered  to  the
  779.          remote DTE on circuit R with i = ON.
  780.          5.3.3  Data transfer (state 13)
  781.                When c = ON, i = ON data transmitted by the central DTE  are  delivered  to
  782.          all remote DTEs, and data  transmitted  by  a  remote  DTE  (one  at  a  time  as
  783.          determined by data link protocol) are delivered to the central DTE. A remote  DTE
  784.          may send (one at a time as determined  by  the  data  link  protocol)  while  the
  785.          central DTE is sending to all remote DTEs.
  786.          5.4    Circuit-switched service - Point-to-multipoint service
  787.                The  different  configurations  of  point-to-multipoint  are   defined   in
  788.          Recommendation X.2.
  789.          5.4.1  Centralized multipoint
  790.                All bits sent by the central DTE after indication of  ready  for  data  for
  791.          16-bit intervals (see S 2.4) and before clearing procedure has  been  started  by
  792.          the central DTE or by the network, will be delivered to  all  remote  DTEs  after
  793.          they have received ready for  data  and  before  they  have  received  DCE  clear
  794.          indication (provided  that  the  remote  DTEs  do  not  take  the  initiative  of
  795.          clearing).
  796.                All bits received by a remote DTE, after indication of ready for  data  for
  797.          16-bit intervals (see S 2.4) and before clearing procedure has  been  started  by
  798.          the central DTE, by the network or the remote DTE, were sent by the central  DTE.
  799.          Some of those may have originated as DTE  waiting  before  the  central  DTE  has
  800.          received ready for data; those bits are binary 1.
  801.                All bits sent by a remote DTE, after  indication  of  ready  for  data  for
  802.          16-bit intervals (see S 2.4) and before clearing procedure has  been  started  by
  803.          the central DTE, by the network or by the remote DTE, will be  delivered  to  the
  804.          central DTE after that central DTE has received ready for data and before it  has
  805.          received DCE clear confirmation or DCE clear indication, provided  that  the  the
  806.          other remote DTEs are transmitting binary 1.
  807.                All bits received by the central DTE, after receiving ready  for  data  for
  808.          16-bit intervals (see S 2.4) and before receiving DCE  clear  indication  or  DCE
  809.          clear confirmation, were sent by one of the remote DTEs. Some of these  may  have
  810.          originated as DTE waiting before the remote DTEs have received  ready  for  data;
  811.          those bits are binary 1.
  812.                During data transfer (state 13), c = ON, i = ON and  data  are  transferred
  813.          on circuits T and R.
  814.                Data transfer may be terminated by clearing, as defined in S  6  below,  by
  815.          either:
  816.                i)  the central DTE or,
  817.                ii) all the remote DTEs or,
  818.                iii)   the DCEs.
  819.          6      Clearing phase (see Figure A-4/X.21)
  820.                In centralized multipoint calls:
  821.                -   clearing by the central DTE imply clearing of the call;
  822.                -   clearing by a remote DTE clears the call for  this  DTE,  and  has  no
  823.                   effect on the calls which remain established for the other remote DTEs;
  824.                -   clearing by the last remote DTE still in the call leads to the clearing 
  825.                   of the call.
  826.          6.1    Clearing by the DTE (states 16, 17, 21)
  827.                The DTE should indicate clearing by signalling the steady binary  condition
  828.          t = 0, c = OFF, DTE clear request (state 16).
  829.                The DCE will respond by signalling the steady state condition r =  0,  i  =
  830.          OFF, DCE clear confirmation (state 17), followed by the steady binary condition r
  831.          = 1, i = OFF, DCE ready (state 21). The DCE ready signal will be  sent  within  2
  832.          seconds after the receipt of the DTE clear request signal.
  833.                The DTE shall recognize DCE clear confirmation and, except as noted  below,
  834.          shall then respond to DCE ready, when  presented,  within  100  millisecondes  by
  835.          signalling t = 1, c = OFF, ready (state 1).
  836.                In the case where DCE clear confirmation is either  not  presented  by  the
  837.          DCE or not recognized by the DTE, the DTE shall remain in the DTE  clear  request
  838.          state for a minimum of 2 seconds and then go to DTE ready. In this case, the  DTE
  839.          may not respond to DCE ready within the 100 milliseconds stipulated above and may
  840.          be considered by the DCE to be uncontrolled not ready (state  24)  for  a  finite
  841.          period of time (until it goes to DTE ready).
  842.          6.2    Clearing by the DCE (states 19, 20, 21)
  843.                The DCE will indicate clearing to the DTE by signalling the  steady  binary
  844.          condition r = 0, i = OFF, DCE clear indication (state 19).
  845.                The DTE should signify DTE clear confirmation (state 20) by signalling  the
  846.          steady binary condition t = 0, c = OFF, within 500  milliseconds.  The  DCE  will
  847.          signal r = 1, i = OFF, DCE ready (state 21) within 2  seconds  of  receiving  DTE
  848.          clear confirmation.
  849.                The DTE should respond to DCE ready within 100 milliseconds  by  signalling
  850.          t = 1, c = OFF, ready (state 1).
  851.          7      Test loops
  852.                The definitions of  the  test  loops  and  the  principles  of  maintenance
  853.          testing using the test loops are provided in Recommendation X.150.
  854.          7.1    DTE test loop - type 1 loop
  855.                This loop is used as a basic test of the operation of the DTE,  by  looping
  856.          back the transmitted signals inside the DTE for checking. The loop should be  set
  857.          up inside the DTE as close as possible to the DTE/DCE interface.
  858.                While the DTE is in the loop 1 test condition:
  859.                -   circuit T is connected to circuit R inside of the DTE;
  860.                -   circuit C is connected to circuit I inside of the DTE;
  861.                -   the DCE continues to present signal element timing on circuit S and, if 
  862.                   implemented, byte timing on circuit B. The DTE need not make use of the
  863.                   timing information.
  864.                Loop 1 may be established from either the data transfer or ready state.
  865.                In some networks, for short routine tests during the data  transfer  state,
  866.          the DTE should either maintain the same status on  the  interchange  circuits  as
  867.          before the test or  send  the  controlled  not  ready  signal.  If  the  loop  is
  868.          established from the data transfer state, the DCE may continue to deliver data to
  869.          the DTE during the test as though the DTE were in normal operation.  It  will  be
  870.          the responsibility of the DTEs to recover from any errors that might occur  while
  871.          the test loop is activated.
  872.                If the loop is established from the ready state, the DTE should signal  one
  873.          of the not ready states.
  874.          7.2    Local test loop - type 3 loop
  875.                Local test loops (type 3 loops) are used to test the operation of the  DTE,
  876.          the interconnecting cable and either all or parts of the local DCE, as  discussed
  877.          below.
  878.                Loop 3 may be established from any state.
  879.                For  testing  on  leased  circuits  and  for  short  duration  testing   on
  880.          circuit-switched connections the DCE should either continue to present toward the
  881.          line the conditions that existed before the test (e.g. either  data  transfer  or
  882.          ready state) or send the controlled not ready state to the remote DTE. Where this
  883.          is not practical (e.g. in some cases for loop 3a) or  desirable  (e.g.  for  long
  884.          duration testing in circuit-switched applications) the DCE  should  terminate  an
  885.          existing call and, if possible, signal toward the subscriber-line one of the  not
  886.          ready states.
  887.                Manual  and/or  automatic  control  should  be  provided  on  the  DCE  for
  888.          activation of the test loop.
  889.                The precise implementation of the test loop within the DCE  is  a  national
  890.          option. At least one of the following local loops should be implemented:
  891.          7.2.1  Loop 3d
  892.                This loop is  used  to  test  the  operation  of  the  DTE,  including  the
  893.          interconnecting cable, by returning transmitted signals to the DTE for  checking.
  894.          The loop is set up inside the local DCE and does not include interchange  circuit
  895.          generators and loads.
  896.                While the DCE is in the loop 3d test condition:
  897.                -   circuit T is connected to circuit R inside of the DCE;
  898.                -   circuit C is connected to circuit I inside of the DCE;
  899.                -   the DCE continues to present signal element timing on circuit S and, if 
  900.                   implemented, byte timing on circuit B. The DTE must  make  use  of  the
  901.                   timing information.
  902.                Note - While test  loop  3d  is  operated,  the  effective  length  of  the
  903.          interface cable is doubled. Therefore, to insure proper operation of loop 3d, the
  904.          maximum DTE/DCE interface cable length should be  one-half  the  length  normally
  905.          appropriate for the data signalling rate in use.
  906.          7.2.2  Loop 3c
  907.                This loop is  used  to  test  the  operation  of  the  DTE,  including  the
  908.          interconnecting cable and DCE interchange circuit generators and loads.
  909.                The configuration is identical to that given for loop 3d in  S  7.2.1  with
  910.          the exception that the looping of circuit T to  circuit  R  and  the  looping  of
  911.          circuit C to circuit I includes the interchange circuit generators and loads. The
  912.          note concerning restriction of interface cable length is not applicable.
  913.          7.2.3  Loop 3b
  914.                This loop is used as a test of the  operation  of  the  DTE  and  the  line
  915.          coding and control logic and circuitry of the DCE. It includes all the  circuitry
  916.          of the DCE with the exclusion of the line  signal  conditioning  circuitry  (e.g.
  917.          impedance matching transformers, amplifiers, equalizers, etc.). The delay between
  918.          transmitted and received test data is a few octets (see Note).
  919.                The configuration is identical to that given for loop 3c in S 7.2.2  except
  920.          for the location of the point of loopback.
  921.                Note - In some DCEs, the setting of loop 3b will result in  momentary  loss
  922.          of  envelope  alignment  causing  random  signals  to  appear  on  the  receiving
  923.          interchange circuit for a period of time. This  may  impact  upon  the  DTE  test
  924.          procedure. In some networks the  setting  of  loop  3b  will  cause  clearing  of
  925.          existing connections.
  926.          7.2.4  Loop 3a
  927.                This loop is used to test the operation of the DTE and the  DCE.  The  loop
  928.          should include the maximum amount of circuitry used in DCE working including,  in
  929.          particular, the line signal conditioning circuitry. It  is  recognized  that,  in
  930.          some cases, the inclusion of devices (e.g. attenuators, equalizers or  test  loop
  931.          translators) may be necessary in  the  loopback  path.  The  subscriber  line  is
  932.          suitably  terminated  during  a  loop  3a  test  condition.  The  delay   between
  933.          transmitted and received test data is a few octets (see Note).
  934.                The configuration is identical to that given for test loop 3b  in  S  7.2.3
  935.          except for the location of the point of loopback.
  936.                Note - In some DCEs, the setting of loop 3a will result in  momentary  loss
  937.          of  envelope  alignment  causing  random  signals  to  appear  on  the  receiving
  938.          interchange circuit for a period of time. This  may  impact  upon  the  DTE  test
  939.          procedure. In some networks the  setting  of  loop  3a  will  cause  clearing  of
  940.          existing connections.
  941.          7.2.5  Automatic operation of test loop 3 (see Figure A-9/X.21)
  942.                The procedure provides for transparent loop  testing  and  may  be  entered
  943.          from any state.
  944.          7.2.5.1  Send loop 3 command (state L31)
  945.                The testing DTE shall indicate a request for a local loop 3  by  signalling
  946.          t = 00001111 (alternate bit quadruples are binary 0 and binary 1), c =  OFF.  The
  947.          loop command shall persist until the DCE signals r = 00001111..., i  =  OFF,  but
  948.          not longer than 6 s. Some networks may require the loop command to be preceded by
  949.          2 or more contiguous 1/6 ("SYN") characters and to appear on a character boundary
  950.          00001111. Some networks will not require the preceding SYN-characters to be sent,
  951.          i.e. they will treat the loop command as a bit pattern which, therefore, does not
  952.          need  to  appear  on  a  character  boundary.  However,  this  would  impose   no
  953.          restrictions on DTEs sending the  loop  command  on  a  character  boundary  with
  954.          preceding SYN-characters.
  955.          7.2.5.2  Loop 3 confirmation (state L32)
  956.                The DCE indicates that the local loop 3 is established by  signalling  r  =
  957.          00001111, i = OFF.
  958.                Note - This  bit  pattern  received  on  circuit  R  is  the  loop  command
  959.          reflected by the local loop 3.
  960.          7.2.5.3  Test data (state L33)
  961.                The DTE enters the transparent test data state by turning c  =  ON.  During
  962.          the test any bit sequence may be sent by  the  DTE.  The  looped  back  data  are
  963.          received on circuit R with i = ON.
  964.          7.2.5.4  Loop 3 clear request (state L34A)
  965.                The DTE signals the termination of the test data by turning c = OFF.
  966.          7.2.5.5  Loop 3 clear request (state L34B)
  967.                In cases where the DTE does not wish to enter state L33 it may leave  state
  968.          L32 by signalling t ╣ 00001111, c = OFF for a minimum time of 24 bits.
  969.          7.2.5.6  Loop 3 clear confirmation (state L35)
  970.                Release of the loop is confirmed by the DCE signalling  r   00001111,  i  =
  971.          OFF.
  972.          7.3    Network test loop - type 2 loop
  973.                Network test loops (type 2 loops) are used  by  the  Administration's  test
  974.          centre to test the operation of the leased line or subscriber line and either all
  975.          or part of the DCE, as discussed below.
  976.          7.3.1  General
  977.                Loop 2 may be controlled manually on the  DCE  or  automatically  from  the
  978.          network or where allowed by national testing principles  automatically  from  the
  979.          remote DTE.
  980.                In case of a collision between call  request  and  the  activation  of  the
  981.          loop, the loop activation command will have priority.
  982.                When the test is in progress, the DCE will signal r = 0, i =  OFF  or  r  =
  983.          0101, i = OFF. The choice as to which of these signals  is  sent  is  a  national
  984.          matter.
  985.          7.3.2  Automatic operation of test loop 2 (see Figures A-7/X.21 and A-8/X.21)
  986.                The procedure provides for transparent loop testing  and  is  entered  from
  987.          the data transfer phase, state 13 in circuit switched service point-to-point.  It
  988.          may also be entered from any state in leased circuit service.
  989.          7.3.2.1  Send loop 2 command (state L21)
  990.                The testing DTE shall indicate a request for a remote loop 2 by  signalling
  991.          t = 00110011 (alternate bit pairs are binary 0 and binary 1), c = OFF.  The  loop
  992.          command shall persist until the DCE signals r = 00110011 . . . , i = OFF, but not
  993.          longer than 2 s. Some networks may require the loop command to be preceded  by  2
  994.          or more contiguous 1/6 ("SYN") characters and to appear on a  character  boundary
  995.          00110011. Some networks will not require the preceding SYN-characters to be sent,
  996.          i.e. they will treat the loop command as a bit pattern which, therefore, does not
  997.          need  to  appear  on  a  character  boundary.  However,  this  would  impose   no
  998.          restrictions on DTEs sending the  loop  command  on  a  character  boundary  with
  999.          preceding SYN-characters.
  1000.          7.3.2.2  Loop 2 confirmation (state L22)
  1001.                The DCE indicates that the remote loop 2 is established by signalling  r  =
  1002.          001100 . . . , i = OFF.
  1003.                Note - This  bit  pattern  received  on  circuit  R  is  the  loop  command
  1004.          reflected by the remote loop 2.
  1005.          7.3.2.3  Test data (state L23)
  1006.                The DTE enters the transparent test data state by turning c = ON.
  1007.                During the test any bit sequence may be sent by the DTE.  The  looped  back
  1008.          data are received on circuit R with i = ON.
  1009.                Note - Allowance must be made for propagation delay in the network.
  1010.          7.3.2.4  Loop 2 clear request (state L24A)
  1011.                The DTE signals the termination of the test data state by turning c = OFF.
  1012.                In the case where the DTE wishes to clear the connection it signals t =  0,
  1013.          c = OFF (state 16).
  1014.                In the case where the DTE wishes to re-enter the  data  transfer  phase  it
  1015.          signals t ╣ 0 ╣ 0011, c = OFF until the  DCE  signals  state  L25  loop  2  clear
  1016.          confirmation, r ╣ 0 ╣ 0011, i = OFF. After  that,  the  DTE  re-enters  the  data
  1017.          transfer phase by signalling t = D, c = ON.
  1018.          7.3.2.5  Loop 2 clear request (state L24B)
  1019.                In cases where the DTE does not wish to enter state L23 it may leave  state
  1020.          L22 by signalling t  0011, c = OFF for a minimum time of 24 bits.
  1021.                In the case where the DTE wishes to clear the connection it signals t =  0,
  1022.          c = OFF (state 16).
  1023.                In the case where the DTE wishes to re-enter the  data  transfer  phase  it
  1024.          signals t ╣ 0╣ 0011, c = OFF until  the  DCE  signals  state  L25  loop  2  clear
  1025.          confirmation, r ╣ 0 ╣ 0011, i = OFF. After  that,  the  DTE  re-enters  the  data
  1026.          transfer phase by signalling t = D, c = ON.
  1027.          7.3.2.6  Loop 2 clear confirmation (state L25)
  1028.                Release of the loop is confirmed by the DCE signalling r ╣ 0011 . . .  ,  i
  1029.          = OFF.
  1030.                Note - The DCE signalling of r = 0, i = OFF must be interpreted by the  DTE
  1031.          as loop clear confirmation and DCE clear indication (state 19).
  1032.          7.3.2.7  Receive loop 2 command (state L26)
  1033.                The DCE will indicate the receipt of a  loop  command  by  transmission  of
  1034.          0011 . . . on circuit R with i = OFF.
  1035.                Note - In some networks state L26  will  be  bypassed  if  the  loop  2  is
  1036.          operated from the Administration's test centre.
  1037.          7.3.2.8  Loop 2 consent (state L26A)
  1038.                The DTE of the tested station will indicate its readiness for a  loop  test
  1039.          by signalling t = X, c = OFF.
  1040.                Note - Some  networks  may  require  this  state  for  additional  security
  1041.          against malicious test loop operation.
  1042.          7.3.2.9  DCE controlled not ready (state L27)
  1043.                When the DCE has closed the loop 2 it transmits 0101 . .  .  on  circuit  R
  1044.          and i = OFF to the DTE.
  1045.                This DTE should not interpret this state as a clear indication, if  it  was
  1046.          in the data transfer phase before the test procedure began.
  1047.          7.3.2.10 Loop 2 released (state L28)
  1048.                When the DCE stops transmitting 0101 .  .  .  for  more  than  24  bits  on
  1049.          circuit R, the DTE is informed that it may continue with the state it had left at
  1050.          the beginnng of state L27.
  1051.          7.3.2.11 DCE not ready (state L29)
  1052.                In the case when the DCE is not able to send DCE controlled not  ready,  it
  1053.          will signal DCE not ready (state L29). This state will persist until the loop  is
  1054.          released.
  1055.                Note - It is not possible to re-enter  the  data  transfer  phase  in  this
  1056.          case.
  1057.          7.3.3  Implementation of type 2 loops
  1058.                The precise implementation of the test loop within the DCE  is  a  national
  1059.          option. At least one of the following network test loops should be implemented:
  1060.          7.3.3.1  Loop 2b
  1061.                This loop is used by either the Administration's test centre(s) and/or  the
  1062.          remote DTE to test the operation of the subscriber line and all the circuitry  of
  1063.          the DCE with the exception of interchange circuit generators and loads.
  1064.                While the DCE is in the loop 2b test condition:
  1065.                -   circuit R is connected to circuit T inside of the DCE,
  1066.                -   circuit I is connected to circuit C inside of the DCE,
  1067.                -   at the interface, the DCE signals r = 0, i = OFF, or where provided r = 
  1068.                   0101 . . ., i = OFF,
  1069.                -   the DCE provides timing information on circuits S and, if implemented,
  1070.                   on circuit B.
  1071.          7.3.3.2  Loop 2a
  1072.                This loop is used by either the  Administration's  test  centre(s)  or  the
  1073.          remote DTE to test the operation of the subscriber line and the entire DCE.
  1074.                The configuration is identical to that given  for  loop  2b  in  S  7.3.3.1
  1075.          except for the location of the point of loop back.  Alternatively,  the  DCE  may
  1076.          present an open circuit or power off condition on circuits R and I.
  1077.          7.4    Subscriber-line test loop - type 4 loop
  1078.                Subscriber-line test loops (type 4 loops) are provided for the  maintenance
  1079.          of lines by the Administrations.
  1080.                Note - In the case of loops 4 and 2 (see S 7.3 above) the  DCE  may  signal
  1081.          the local DTE in such a manner that the DTE can distinguish a test  mode  from  a
  1082.          network failure. This is for further study.
  1083.          7.4.1  Loop 4a
  1084.                This loop is only provided in the case of 4-wire subscriber lines. Loop  4a
  1085.           is  for  the  maintenance  of  lines  by  Administrations.  When  receiving   and
  1086.           transmitting pairs are  connected  together,  the  resulting  circuit  cannot  be
  1087.           considered normal. Loop 4a may be established inside the DCE  or  in  a  separate
  1088.           device.
  1089.                 While the DCE is in the loop 4a test condition:
  1090.                  -   the DCE signals to the local DTE r = 0, i = OFF, or where provided r =
  1091.                      0101 . . ., i = OFF.
  1092.                  -   the DCE provides timing information on circuit S and, if  implemented,
  1093.                      circuit B.
  1094.           7.4.2  Loop 4b
  1095.                 This loop  is  used  by  Administrations  to  test  the  operation  of  the
  1096.           subscriber line including the line signal conditioning circuitry in the DCE. When
  1097.           the receiving and transmitting circuits are connected  at  this  point,  loop  4b
  1098.           provides a connection that can be considered as normal; however, some  impairment
  1099.           of the performance is expected since the DCE does not perform a  complete  signal
  1100.           regeneration.
  1101.                 The configuration is identical to that given for loop 4a in S 7.4.1  except
  1102.           for the location of the point of the loopback.
  1103.           7.5    Signal element timing provision
  1104.                 The provision of signal element timing to the DTE is  maintained  when  any
  1105.           of the loops, described above, are activated.
  1106.                 When test loops are activated, the signal element timing should in no  case
  1107.           deviate from the nominal value by more than ▒ 1%.
  1108.                                                    ANNEX A
  1109.                                       (to Recommendation X.21)
  1110.                                 Interface signalling state diagrams
  1111.                           Definition of symbols used in the state diagrams
  1112.  
  1113.                                        FIGURE A-1/X.21    CCITT-38351
  1114.  
  1115.                                          FIGURE A-2/X21 CCITT-38360
  1116.  
  1117.                                        FIGURE A-3/X.21    CCITT-25030
  1118.  
  1119.                                        FIGURE A-4/X.21    CCITT-25042
  1120.  
  1121.                                        FIGURE A-5/X.21    CCITT-61370
  1122.  
  1123.                                        FIGURE A-6/X.21    CCITT-61380
  1124.  
  1125.                                        FIGURE A-7/X.21    CCITT-85170
  1126.  
  1127.                                        FIGURE A-8/X.21    CCITT-85180
  1128.  
  1129.                                        FIGURE A-9/X.21    CCITT-69450
  1130.  
  1131.